﻿<%@ Page Title="Zupons Discussion Reply" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true"
    CodeFile="DiscussionReply.aspx.cs" Inherits="Front_DiscussionReply" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="CSS/stylesDiscLogSign.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="" id="main-content">
        <div class="body">
            <div class="body">
                <table id="main-body">
                    <tbody>
                        <tr>
                            <td class="content">
                                <div class="box-outer">
                                    <div class="box">
                                      
                                                    <table border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td align="right" valign="top">
                                                                <asp:HyperLink runat="server" ID="HyperLink1" NavigateUrl="~/Discussion.aspx" Font-Underline="false"
                                                                    Font-Bold="true" Text="Back To Discussion"></asp:HyperLink>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table  border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td class="subscription_header">
                                                                <asp:Label ID="lblTopicName" runat="server" Font-Bold="true" Font-Size="18pt" Font-Names="Times New Roman"
                                                                    Text="Some Zupons Topic" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="login_lheader">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="login_lheader">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:GridView ID="gvTopicReplies" runat="server" AllowPaging="true" PageSize="3"
                                                                                BorderColor="White" AutoGenerateColumns="false"  OnRowDataBound="gvTopicReplies_RowDataBound"
                                                                                OnPageIndexChanging="gvTopicReplies_PageIndexChanging" DataKeyNames="DiscussionDetailID">
                                                                                <Columns>
                                                                                    <asp:TemplateField>
                                                                                        <ItemTemplate>
                                                                                            <div style="width: 100%;">
                                                                                                <table  border="0" cellspacing="0" cellpadding="0">
                                                                                                    <tr valign="top">
                                                                                                        <td >
                                                                                                            <asp:Image ID="imgByUser" runat="server" Height="50px" Width="50px" AlternateText="ProfileImage"
                                                                                                                ImageUrl='<%# Eval("UserID","~/GetImage.aspx?UserID={0}") %>' />
                                                                                                        </td>
                                                                                                        <td  align="right">
                                                                                                            <img src="images/discussion_pict_curve.jpg" width="27" height="28" vspace="12" />
                                                                                                        </td>
                                                                                                        <td >
                                                                                                            <table  border="0" cellpadding="0" cellspacing="0" class="black_bg">
                                                                                                                <tr class="grey_bg">
                                                                                                                    <td height="100" valign="top">
                                                                                                                        <table width="579" border="0" cellspacing="0" cellpadding="3">
                                                                                                                            <tr>
                                                                                                                                <td align="left">
                                                                                                                                    <input type="hidden" runat="server" id="hiddenUserID" value='<%# Eval("UserID") %>' />
                                                                                                                                    <span class="discussion_content"><strong>
                                                                                                                                        <asp:Label ID="lblUserName" runat="server" Text='' Font-Size="Small" />
                                                                                                                                    </strong></span><span class="discussion_content1">
                                                                                                                                        <asp:Label ID="Label1" runat="server" Text='   Commented ' Font-Size="Smaller" />
                                                                                                                                        <asp:Label ID="CreatedDateTimeLabel" runat="server" Text='<%# Eval("CreatedDateTime") %>'
                                                                                                                                            Font-Size="Smaller" />
                                                                                                                                    </span>
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                            <tr>
                                                                                                                                <td>
                                                                                                                                    &nbsp;
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                            <tr>
                                                                                                                                <td class="discussion_content">
                                                                                                                                    <asp:Label ID="TopicLabel" runat="server" Font-Size="Small" Text='<%# Eval("Reply") %>' />
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                        </table>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </table>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="3">
                                                                                                            &nbsp;
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </div>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                            </asp:GridView>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <hr />
                                                                            <hr />
                                                                            <asp:LoginView ID="LoginViewToComment" runat="server">
                                                                                <AnonymousTemplate>
                                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                                        <asp:HyperLink ID="lblSome1" runat="server" Font-Bold="true" Font-Size="Larger" NavigateUrl="~/Login.aspx"
                                                                                            Text="Sign in to comment"></asp:HyperLink>
                                                                                    </div>
                                                                                </AnonymousTemplate>
                                                                                <LoggedInTemplate>
                                                                                    <table cellpadding="0px" cellspacing="0px">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <table cellpadding="0px" cellspacing="0px">
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <asp:Label ID="lblSome1" runat="server" Font-Bold="true" Font-Size="8pt" Text="Comment : " />
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <asp:TextBox ID="txtPostComment" runat="server" TextMode="MultiLine" Columns="50"
                                                                                                                Rows="10" Height="80px" MaxLength="2000"></asp:TextBox>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td>
                                                                                                <table cellpadding="0px" cellspacing="0px" style="height: 100%">
                                                                                                    <tbody>
                                                                                                        <tr>
                                                                                                            <td valign="top">
                                                                                                                <asp:RequiredFieldValidator ID="RFVTPC" Font-Size="10pt" runat="server" ControlToValidate="txtPostComment"
                                                                                                                    ValidationGroup="VG1" ErrorMessage="Commet can not be blank"></asp:RequiredFieldValidator>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td valign="bottom">
                                                                                                                <asp:Button ID="btnPostComment" runat="server" Text="Submit" ValidationGroup="VG1"
                                                                                                                    CausesValidation="true" OnClick="btnPostComment_Click" />
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </tbody>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </LoggedInTemplate>
                                                                            </asp:LoginView>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                             
                                    </div>
                                    <div class="box-inner">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
